package me.luraframework.gateway.auth.handler;

import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

/**
 * @ description: AuthService
 * @ author: Liu Ran
 * @ data: 7/13/23 19:24
 */
public interface AuthHandler {

    AuthType getAuthType();
    String getToken(ServerWebExchange exchange);

    Mono<Map<String, Object>> getUserContext(ServerWebExchange exchange);

    List<String> isWhitelist(ServerWebExchange exchange);
}
